package com.xique.door.controller;


import com.xique.common.core.utils.poi.ExcelUtil;
import com.xique.common.core.web.controller.BaseController;
import com.xique.common.core.web.domain.AjaxResult;
import com.xique.common.core.web.page.TableDataInfo;
import com.xique.common.log.enums.BusinessType;
import com.xique.door.bean.domain.Area;
import com.xique.door.service.IAreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 地区码Controller
 * 
 * @author ww
 * @date 2019-10-06
 */
@Controller
@RequestMapping("/area")
public class AreaController extends BaseController
{
    private String prefix = "oms/area";

    @Autowired
    private IAreaService tAreaService;


    /**
     * 查询地区码列表
     */
    @GetMapping("/list")
    @ResponseBody
    public TableDataInfo list(Area tArea)
    {
        startPage();
        List<Area> list = tAreaService.selectAreaList(tArea);
        return getDataTable(list);
    }

}
